package com.pxmeta.party.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@TableName("kt_activity_ad_astra_user_record")
@ApiModel(value = "星际探险用户记录", description = "星际探险用户记录")
@Data
public class ActivityAdAstraUserRecord {

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("记录id")
    private Long recordId;

    @ApiModelProperty("星球id")
    private Long starId;

    @ApiModelProperty("投入数量")
    private Integer count;

    @ApiModelProperty(value = "奖励总价值")
    private Integer rewardPrice;

    @ApiModelProperty(value = "总消费")
    private Integer totalPrice;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;

}
